package cn.wolfcode.crm.domain;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Classinfo {
    private Long id;

    private String name;

    private Integer number;

    private Employee employee;

    public String getJson(){
        Map map = new HashMap();
        map.put("id",id);
        map.put("name",name);
        map.put("number",number);
        map.put("employee",employee);
        return JSON.toJSONString(map);
    }

}